Component({
    properties: {
        data: {
            type: Object
        },
        toDetails: {
            type: Boolean,
            value: !0
        }
    },
    data: {},
    methods: {
        openMap: function() {
            wx.openLocation({
                latitude: parseFloat(this.data.data.store_latitude),
                longitude: parseFloat(this.data.data.store_longitude)
            });
        },
        toStoreDetails: function() {
            !1 !== this.data.toDetails && (2 == this.data.data.store_type ? wx.redirectTo({
                url: "/packageC/hotel/HotelHome/HotelHome?id=" + this.data.data.id
            }) : wx.redirectTo({
                url: "/packageC/o2o/HomeSeller/HomeSeller?store_id=" + this.data.data.id
            }));
        }
    }
});